/**
 * 
 */
package com.wgo.bpot.domain.common;


/**
 * @author Petter L. H. Eide
 *
 */
public class AuthenticationHandlerImpl implements AuthenticationHandler {

	private UserCredential userCredential = null;
	
	public AuthenticationHandlerImpl(UserCredential userCredential) {
		if (null == userCredential){
			throw new NullPointerException("UserCredentials cannot be 'null'");
		}
		this.userCredential = userCredential;
	}

	/* (non-Javadoc)
	 * @see com.wgo.bpot.domain.common.AuthenticationHandler#createUserCredential()
	 */
	public UserCredential createUserCredential() {
		return userCredential;
	}

}
